'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	let type = event.type;
	if (type == 'pl') {
		delete event.type;
		return await db.collection('comment').add(event)
	}else{
		delete event.type;
		return await db.collection('re_comment').add(event)
	}
};
